In linux , the write system call is used to write data to the pipe 在linux中,可以使用write ( )系統(tǒng)調(diào)用向管道中寫(xiě)入數(shù)據(jù),其中fd是管道寫(xiě)端的句柄:
The data transmission rate is effectively increased by using data packet as i / o read and write system call functions " parameter 本文通過(guò)將數(shù)據(jù)包作為i o讀寫(xiě)系統(tǒng)調(diào)用函數(shù)的參數(shù)有效地提高了數(shù)據(jù)傳輸率。
We intercept and capture the read and write system calls via putting the nvram on the request queue . then observing the capacity of the " dirty " data , we redirect the writing direction to the hard disk while detecting the proportion of the " dirty " data exceeds the limit 通過(guò)文件系統(tǒng)對(duì)數(shù)據(jù)讀寫(xiě)操作流程的分析,在系統(tǒng)的request隊(duì)列中將其讀寫(xiě)的對(duì)象置換為nvram ,從而實(shí)現(xiàn)數(shù)據(jù)讀寫(xiě)的截取和轉(zhuǎn)向,然后對(duì)nvram的臟數(shù)據(jù)容量進(jìn)行檢測(cè),當(dāng)其到達(dá)nvram容量的一定比例后,調(diào)用相應(yīng)的程序把臟數(shù)據(jù)對(duì)外設(shè)回寫(xiě)。